<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>有猫腻官网</title>
    <link rel="stylesheet" href="__PUBLIC__/ymn_admin/css/reset.css" />
    <link rel="stylesheet" href="__PUBLIC__/ymn_admin/css/common.css" />
    <link rel="stylesheet" href="__PUBLIC__/ymn_admin/css/cp.css" />
</head>
<body>
<!--#include file="header.html"-->
<include file="Index/login_header"/>

<div class="wrapper">
    <div class="index_content content">
        <!--<div class="title_top"><h2>下载中心</h2><span>所有下载内容都在这里</span></div>-->
        <div class="title_content">
            <div class="tabs_box">
                <ul class="tabs_ul">
                    <li><a href="/Index/index?id=0">下载中心</a><i class="triangle-left"></i></li>
                    <li><a href="/Support/index?id=1">渠道列表</a><i class="triangle-left"></i></li>
                    <li><a href="/Test/index?id=2">母包测试</a><i class="triangle-left"></i></li>
                    <li><a href="/User/index?id=3">权限管理</a><i class="triangle-left"></i></li>
                    <li><a href="/App/index?id=4">产品列表</a><i class="triangle-left"></i></li>
                </ul>
                <div class="tabs_container">
                    
                    <div id="tabs4" class="tabs_content">
                        <h3>权限管理</h3>
                        <div class="search">
                            <form action="/User/index" method="get">
                            <input type="hidden" id="hid_id"  name="id" value="3"> 
                            <input type="text" id="content" name="content" placeholder="用户名/账号">
                                <button  type="submit" class="mbcs_ss" >搜
                                </button>
                                <button type="button"class="return">返回</button>
                            </form>
                            
                        </div>
                        <a class="xzzh_xz" href="javascript:void(0)">新增账号+</a><br/>
                        <if condition="$user_admin neq NULL">
                            
                            <table class="cp_list_table">
                                <thead>
                                <tr>
                                    <th >用户名</th>
                                    <th >账号</th>
                                    <th >密码</th>
                                    <th>权限</th>
                                    <th>最后登陆</th>
                                    <th>状态</th>
                                    <th>操作</th>
                                    
                                    
                                </tr>
                                </thead>
                                <tbody>
                                    
                                <foreach name="user_admin" item="vou">

                                <tr>
                                    <td>{$vou.account}</td>
                                    <td>{$vou.username}</td>
                                    <td class="key">{$vou.password}</td>
                                    <td>
                                        <if condition="$vou.power eq 2">超级管理员
                                        <elseif condition="$vou.power eq 1"/>测试权限
                                        <else/>普通用户
                                        </if>
                                    </td>
                                    <td class="time">
                                        <if condition="$vou.last_time neq NULL">
                                        {$vou.last_time|date="Y-m-d H:i:s",###}
                                        <else/>
                                        </if>
                                    </td>    
                                    <td>
                                        <if condition="$vou.status eq 1">使用中
                                            
                                        <elseif condition="$vou.status eq 0"/>已禁用
                                        
                                        </if>
                                        
                                    </td>  
                                    <td><a href="javascript:void(0)" data-qxgl='{$vou|json_encode}'class="xzzh_bj" >编辑</a>
                                    </td>                                  
                                </tr>
                                </foreach>
                                     
                                </tbody>
                            </table>
                            {$page}

                        <else />
                            
                            <h3 class="zwnr">暂无内容<h3>
                            
                        </if>                        
                    </div>
                    
                </div>
            </div>
        </div>
    </div>
</div>
<div class="dialog_bg hide"></div>

<div class="dialog dd hide">

    <div class="dialog_title">
        <h3 class="sp_name"></h3>
        <span class="dialog_close">关闭</span>
    </div>
    <form >
    <div class="xzzh">
        <ul>
            <li>
                <label for="xzzh_yhm"><span id="qdbt">*</span>用户名:</label>
                <input id="xzzh_yhm" type="text" name="name"/>
                
            </li>
            <li>
                <label for="xzzh_zh"><span id="qdbt">*</span>账号:</label>
                <input id="xzzh_zh" type="text" name="account"/>
                
            </li>
            <li>
                <label for="xzzh_mm"><span id="qdbt">*</span>密码:</label>
                <input id="xzzh_mm" type="text" name="password"/>
                
            </li>
            
            <li>
                <label><span id="qdbt">*</span>权限:</label>
                <select id="xzzh_qx" name="qx">
                    <option value="0">普通用户</option>
                    <option value="1">测试权限</option>
                    <option value="2">超级管理员</option>
                </select>
            </li>
            <li>
                <label><span id="qdbt">*</span>状态:</label>
                <select id="xzzh_zt" name="zt">
                    <option value="1">启用</option>
                    <option value="0">禁用</option>
                </select>
            </li>
        </ul>
         <button  type="button" class="qd" id="xzzh_btn">确定</button> 
    </div>
    </form>
</div>

<script src="__PUBLIC__/ymn_admin/js/jquery-1.11.2.min.js"></script>

<script src="__PUBLIC__/ymn_admin/js/admin.js"></script>
</body>
</html>